﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="InvoiceInfo.ascx.cs"
    Inherits="NetDon.OA.Portal.Finance.InvoiceInfo" %>
<%@ Register TagPrefix="uc1" TagName="RequiredMark" Src="~/Controls/RequiredMark.ascx" %>
<NetDon:FormPanel ID="FormPanelInvoice" runat="server" CaptionAlign="NotSet" RepeatColumns="2">
    <Items>
        <NetDon:FormItem FullRow="True" HeaderVisible="False">
            <ContentTemplate>
                <asp:Literal ID="Literal2" runat="server" Text="开票信息"></asp:Literal>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="线路分类">
            <ContentTemplate>
                <asp:Label runat="server" ID="lblRouteName">	</asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="客户名称">
            <ContentTemplate>
                <asp:Label runat="server" ID="txtCustomerName">	</asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="费用描述" ColumnSpan="2">
            <ContentTemplate>
                <asp:TextBox ID="txtExpenseDescription" runat="server" Text='<%#Bind("ExpenseDescription") %>'
                    Width="450px" TextMode="MultiLine" Height="100px"></asp:TextBox>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="开票日期" ColumnSpan="2">
            <ContentTemplate>
                <asp:TextBox ID="txtConfirmInvoiceDate" Text='<%#Eval("ConfirmInvoiceDate") != null ? ((DateTime)Eval("ConfirmInvoiceDate")).ToString("yyyy-MM-dd") : ""%>'
                    runat="server"></asp:TextBox>
                <uc1:RequiredMark ID="RequiredMark4" runat="server" />
                <asp:CalendarExtender ID="txtReceivingOrderDateCalendarExtender1" runat="server"
                    Animated="False" Enabled="True" FirstDayOfWeek="Sunday" TargetControlID="txtConfirmInvoiceDate"
                    Format="yyyy-MM-dd">
                </asp:CalendarExtender>
                <asp:CustomValidator ID="txtReceivingOrderDateCustomValidator1" ClientValidationFunction="validateDateText"
                    runat="server" ErrorMessage="开票日期无效." Display="None" ControlToValidate="txtConfirmInvoiceDate"
                    OnServerValidate="DateValidator_ServerValidate"></asp:CustomValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtConfirmInvoiceDate"
                    Display="None" ErrorMessage="请输入开票日期" SetFocusOnError="True"></asp:RequiredFieldValidator>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="发票号码" ColumnSpan="2">
            <ContentTemplate>
                <asp:TextBox ID="txtInvoiceNO" runat="server" MaxLength="255" Text='<%#Bind("InvoiceNO") %>' Width="450px"></asp:TextBox>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="发票类型">
            <ContentTemplate>
                <asp:DropDownList ID="ddlInvoiceType" DataSourceID="ddsInvoiceType" AppendDataBoundItems="True"
                    runat="server" DataTextField="Name" DataValueField="Value">
                </asp:DropDownList>
                <NetDon:DictionaryDataSource ID="ddsInvoiceType" runat="server" CategoryName="发票类型"
                    EmptyItemType="Select">
                </NetDon:DictionaryDataSource>
                <uc1:RequiredMark ID="RequiredMark8" runat="server" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="ddlInvoiceType"
                    Display="None" ErrorMessage="请输入发票类型" SetFocusOnError="True"></asp:RequiredFieldValidator>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="应收日期">
            <ContentTemplate>
                <asp:TextBox ID="txtAccountsReceivableDate" Text='<%#Eval("AccountsReceivableDate") != null ? ((DateTime)Eval("AccountsReceivableDate")).ToString("yyyy-MM-dd") : ""%>'
                    runat="server" Width="160"></asp:TextBox>
                <uc1:RequiredMark ID="RequiredMark_2" runat="server" />
                <asp:CalendarExtender ID="CalendarExtender1" runat="server" Animated="False" Enabled="True"
                    FirstDayOfWeek="Sunday" TargetControlID="txtAccountsReceivableDate" Format="yyyy-MM-dd">
                </asp:CalendarExtender>
                <asp:CustomValidator ID="CustomValidator1" ClientValidationFunction="validateDateText"
                    runat="server" ErrorMessage="应收日期无效." Display="None" ControlToValidate="txtAccountsReceivableDate"
                    OnServerValidate="DateValidator_ServerValidate"></asp:CustomValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtAccountsReceivableDate"
                    Display="None" ErrorMessage="请输入应收日期" SetFocusOnError="True"></asp:RequiredFieldValidator>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="币种">
            <ContentTemplate>
                <asp:DropDownList ID="ddlInvoiceCurrencyType" DataSourceID="ddsInvoiceCurrencyType"
                    AppendDataBoundItems="True" runat="server" DataTextField="Name" DataValueField="Value">
                </asp:DropDownList>
                <NetDon:DictionaryDataSource ID="ddsInvoiceCurrencyType" runat="server" CategoryName="币种"
                    EmptyItemType="Select">
                </NetDon:DictionaryDataSource>
                <uc1:RequiredMark ID="RequiredMark_1" runat="server" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ddlInvoiceCurrencyType"
                    Display="None" ErrorMessage="请输入币种" SetFocusOnError="True"></asp:RequiredFieldValidator>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="对账金额(￥)">
            <ContentTemplate>
                <asp:Label ID="txtStateofAccountAmount" Text='<%#Convert.ToDecimal(Eval("StateofAccountAmount")).ToString("#,###")%>'
                    runat="server" SkinID="Text80" Style="text-align: right"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="开票金额(￥)" ColumnSpan="2">
            <ContentTemplate>
                <asp:TextBox ID="txtInvoiceAmount" Text='<%#Convert.ToDecimal(Eval("InvoiceAmount")).ToString("#,###")%>'
                    runat="server" SkinID="Text80" Style="text-align: right"></asp:TextBox>
                <NetDon:NumericEditExtender ID="NumericEditExtender3" runat="server" TargetControlID="txtInvoiceAmount"
                    DataMode="Double">
                </NetDon:NumericEditExtender>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="开票备注" ColumnSpan="2">
            <ContentTemplate>
                <asp:TextBox ID="txtInvoiceDescription" runat="server" Text='<%#Bind("InvoiceDescription") %>'
                    Width="450px" TextMode="MultiLine" Height="100px"></asp:TextBox>
            </ContentTemplate>
        </NetDon:FormItem>
    </Items>
</NetDon:FormPanel>
